package com.cnyz.dto;

import com.cnyz.base.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;

@ApiModel(description = "登录数据传输对象")
@Data
public class LoginDto extends BaseDto {
    @ApiModelProperty(value = "用户名")
    String username;

    @ApiModelProperty(value = "用户名")
    String password;

    @ApiModelProperty(value = "邮箱")
    @Email(message = "邮箱格式不正确")
    String email;




}
